<?php
session_start();
if (isset($_POST) && isset($_POST["check"]) && $_POST["check"] == "posted") {
	$_SESSION["logincode"] = md5($_POST["pass"]);
	header("Location: ../admin.php");
}
?>
<form action="adminlogin.php" method="post">
	Log in aub:
	<input type="password" name="pass"/>
	<input type="hidden" name="check" value="posted" />
	<input type="submit" name="submit" value="login"/>
</form>